<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'province-form',
    'enableClientValidation' => true,
        ));
?>
<table class="form" style="width: 100%">   
    <tr>        
        <td class="label"><?php echo $form->labelEX($model, 'id_card_number'); ?></td>
        <td class="input">
            <?php            
                echo $form->textField($model, 'id_card_number', array('style' => 'width:230px'));
                echo $form->error($model, 'id_card_number');
            ?>
        </td>
    </tr>
    <tr>        
        <td class="label"><?php echo $form->label($model, 'id_card_provided_date'); ?></td>
        <td class="input">
            <?php            
                echo $form->textField($model, 'id_card_provided_date', array('style' => 'width:230px', 'class' => 'datepicker', 'readonly'=>'true'));
            ?>
        </td>
    </tr>
    <tr>        
        <td class="label"><?php echo $form->label($model, 'id_card_provided_place'); ?></td>
        <td class="input">
            <?php            
                echo $form->textField($model, 'id_card_provided_place', array('style' => 'width:230px'));
            ?>
        </td>
    </tr>
    <tr>        
        <td class="label"><?php echo $form->label($model, 'passport_number'); ?></td>
        <td class="input">
            <?php            
                echo $form->textField($model, 'passport_number', array('style' => 'width:230px'));
            ?>
        </td>
    </tr>
    <tr>        
        <td class="label"><?php echo $form->label($model, 'passport_provided_date'); ?></td>
        <td class="input">
            <?php            
                echo $form->textField($model, 'passport_provided_date', array('style' => 'width:230px', 'class' => 'datepicker', 'readonly'=>'true'));
            ?>
        </td>
    </tr>
    <tr>        
        <td class="label"><?php echo $form->label($model, 'passport_provided_place'); ?></td>
        <td class="input">
            <?php            
                echo $form->textField($model, 'passport_provided_place', array('style' => 'width:230px'));
            ?>
        </td>
    </tr>
    <tr>
        <td class="label"><?php echo $form->labelEx($model, 'hiring_company_id'); ?></td>
        <td class="input" >            
            <?php
            echo $form->dropDownList($model, 'hiring_company_id', HiringCompany::model()->getChtmlDropdownData(), array('style' => 'width:230px', 'empty' => t('DROPDOWN_FIRST_ITEM_HIRING_COMPANY', 'advanceProfile')));
            ?>
        </td>
    </tr>
    <tr>
        <td class="label"><?php echo $form->labelEx($model, 'introducing_company_id'); ?></td>
        <td class="input" >            
            <?php
            echo $form->dropDownList($model, 'introducing_company_id', IntroducingCompany::model()->getChtmlDropdownData(), array('style' => 'width:230px', 'empty' => t('DROPDOWN_FIRST_ITEM_INTRODUCING_COMPANY', 'advanceProfile')));
            ?>
        </td>
    </tr>
    <tr>
        <td colspan="2" class="cbutton">
<?php echo Html::buttonConfirm(t('BTN_SAVE'), 'statusConfirmed'); ?>
<?php echo Html::buttonConfirm(t('BTN_CANCEL'), 'statusCanceled', 'cancel'); ?>
        </td>
    </tr>
</table>    
<script type="text/javascript">LGCMS.addTooltip();</script>
<?php $this->endWidget(); ?>
<script type="text/javascript">
	LGCMS.addTooltip();
	$(function() {
	    $(".datepicker").datepicker({
	        'dateFormat': 'dd-mm-yy',
	        changeMonth: true,
	        changeYear: true,
	        'buttonImage': '<?php echo themeUrl(); ?>/images/datepicker.gif',
            'showOn': 'both',
            'buttonImageOnly': 'true',
            'buttonText': "Chọn ngày",
            'showAnim': 'slideDown',
            'yearRange': '-60:+0'
	    });
	});
</script>
